<?php
include_once dirname(__FILE__)."/common/basic.php";

$func->validateLogin();
$uid = $_SESSION[uid];
$user = $func->getUserById($uid);
$relation = $func->getRelation($user[uid]);

		$page = $_GET[page]?$_GET[page]:1;
		$pagesize=20;
		$total = $func->getTimelineCount($uid);
		$feeds = $func->getTimeline($uid,$page,$pagesize);
		if(count($feeds)>0){
			$feeds_nav = $func->feeds_nav("my.php", $page, $pagesize, $total);
			$config[keyword]=$func->feeds_keywords($feeds);
			$config[desc]=$func->feeds_description($feeds);
		}else{
			$feeds_empty_message="您还没有分享资源。<a href='publish.php'>分享一个资源</a>或者<a href='explore.php'>看看大家都在分享什么？</a>";
		}
$tl->set_file("my");
$tl->p();
?>